<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <script src="../js/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <div v-html="msg"></div>
        </div>
        <script>
            var vm = new Vue({
                el:'#app',
                data:{
                    msg:"<h2>这是v-html指令绑定</h2>"
                }
            })
        </script>
    </body>
</html>